package com.hys.ultrasound.business.dialog;

import android.content.Context;
import androidx.annotation.NonNull;
import android.view.View;
import android.widget.TextView;

import com.hys.ultrasound.R;
import com.lpjeremy.uimodule.dialog.BaseDialog;

import butterknife.BindView;
import butterknife.ButterKnife;

public class CustomDialog extends BaseDialog {
    @BindView(R.id.txtContent)
    TextView mTxtContent;
    @BindView(R.id.btnCancel)
    TextView mBtnCancel;
    @BindView(R.id.btnSure)
    TextView mBtnSure;

    public CustomDialog(@NonNull Context context, String content, View.OnClickListener sureClickListener) {
        super(context,false);
        ButterKnife.bind(this);
        mTxtContent.setText(content);
        mBtnCancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
        mBtnSure.setOnClickListener(sureClickListener);
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.layout_custom_dialog;
    }

    @Override
    protected boolean getCancelable() {
        return false;
    }


}
